package sg.edu.nus.iss.vmcs.languagesupport;

import java.io.FileInputStream;
import java.util.Properties;

import sg.edu.nus.iss.vmcs.util.VMCSException;

public class EnglishLanguagePropertyBuilder implements LanguagePropertyBuilder {
	private final String propFile = "language/en.properties";
	
	public Properties loadProperty() throws VMCSException {
		Properties prop = null;
		try {
			prop = new Properties();
			FileInputStream stream = new FileInputStream(propFile);
			prop.load(stream);
			stream.close();
		} catch (Exception e) {
			throw new VMCSException("Environment.initialize",
					"Error loading language properties: " + e);
		}
		return prop;
	}

}
